package com.prs.crm.domain.doc;

import java.util.Date;

import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

import com.prs.crm.domain.BaseEntity;
import com.prs.crm.domain.IssueDoc;
import com.prs.crm.domain.hr.Person;
import com.prs.crm.domain.oa.Apply;

@Entity
@Table(name="doc_issue_apply")
public class IssueApply extends BaseEntity implements IssueDoc{
	@Id
	@GeneratedValue(strategy=GenerationType.IDENTITY)
	private Integer id;
	@ManyToOne
	private Apply apply;
	@ManyToOne
	private Person receivePerson;
	private Date startTime;
	private Date endTime;
	
	public Integer getId() {
		return id;
	}
	public void setId(Integer id) {
		this.id = id;
	}
	public Apply getApply() {
		return apply;
	}
	public void setApply(Apply apply) {
		this.apply = apply;
	}
	public Person getReceivePerson() {
		return receivePerson;
	}
	public void setReceivePerson(Person receivePerson) {
		this.receivePerson = receivePerson;
	}
	public Date getStartTime() {
		return startTime;
	}
	public void setStartTime(Date startTime) {
		this.startTime = startTime;
	}
	public Date getEndTime() {
		return endTime;
	}
	public void setEndTime(Date endTime) {
		this.endTime = endTime;
	}
	
}
